#!/bin/sh
rm -f c.img
/home/zyf/root/bin/bximage -hd -mode=flat -size=4 -q c.img
mpartition -I c:
mpartition -c -s 63 -t 7 -h 16 c:
mpartition -c -s 63 -t 1 -h 16 -b 7056 d:
dd if=trampoline.bin of=c.img conv=notrunc
dd if=bootmain.bin of=c.img seek=1 bs=512 conv=notrunc
dd if=zeroimage.bin of=c.img seek=9 bs=512 conv=notrunc
dd if=cxxfix.test.elf of=c.img seek=63 bs=512 conv=notrunc
dd if=cxxpic.test.elf of=c.img seek=189 bs=512 conv=notrunc
dd if=fix.elf of=c.img seek=315 bs=512 conv=notrunc
dd if=pic.elf of=c.img seek=441 bs=512 conv=notrunc
